package com.vsen.lpr.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class CommentDto {

    @NotNull
    private Integer productId;
    /**
     * 1~5
     */
    @NotBlank
    private String text;
    @NotNull
    private Integer star;
    private Date time;
    @NotNull
    private Integer userId;
    @NotBlank
    private String icon;
}
